// CarCompanyHandler
package yate.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author Yate
 * @Date 2011-10-20
 * @description 详细说明
 */
public class CarCompanyHandler implements InvocationHandler
{
	CarCompany a;
	
	public CarCompanyHandler(CarCompany a)
	{
		this.a = a;
	}
	
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
	{
		System.out.println("time1:" + System.currentTimeMillis());
		Object o = method.invoke(a, args);
		System.out.println("time2:" + System.currentTimeMillis());
		return o;
	}
	
}
